﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace OnPremiseProductService
{
    [DataContract]
    public class Product
    {
        [DataMember]
        public string Category { get; set; }
        [DataMember]
        public string ProductID { get; set; }
        [DataMember]
        public string ProductName { get; set; }
        [DataMember]
        public float Price { get; set; }
        [DataMember]
        public int Qantity { get; set; }
    }
    [DataContract]
    [KnownType(typeof(Product))]
    public class ProductCollection : List<Product>
    {
    }
    [DataContract]
    [KnownType(typeof(Product))]
    [KnownType(typeof(ProductCollection))]
    public class HelliumRequest<T>
    {
        [DataMember]
        public T Body { get; set; }
    }
    [DataContract]
    [KnownType(typeof(Product))]
    [KnownType(typeof(ProductCollection))]
    public class HelliumResponse<T>
    {
        [DataMember]
        public T Body { get; set; }
    }
 
}
